Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Adds an opt-in Windows-only trusted-system/cooperative-Native-AOT profile, private per-launch SHA-256 snapshots, native launch with no inherited handles and atomic kill-on-close job assignment, owned process/exit lifetime, and identity-checked cleanup. Base: #559 at
7c53fec00be60ddd7eab3a935550db1e413c017c. This is separate from the #560 experiments.Security boundary
The host trusts the Windows loader, API-set/SxS and system DLLs, and is responsible for historical protection of those system objects from untrusted users. This is not established by ACL checks. The host provides an audited application module name manifest, an exact matching set of individually pinned application files, and a disjoint list of audited system module names for the particular peer. Names and System32 paths are not proof that a file is a trusted system component; an omitted application module incorrectly classified as system cannot be detected from names alone. Normal and delay imports of every staged native PE must appear in one of these lists, and forwarded application exports are rejected; these checks do not prove API-set or SxS resolution. The host must audit the pinned cooperative peer and its application SxS/runtime load behavior. The peer must restrict DLL searches and explicitly load application dependencies from staging before handling sensitive input. This is not a sandbox for arbitrary peer behavior.
Same-user malicious processes and administrators are excluded. No kernel image-section identity, peer authentication, credential transfer, IPC, or Client/Updater integration is claimed. Staging changes the executable directory and working directory; installation context must be provided separately. Crashes can leave protected staging files. See
docs/windows-protected-launch.mdfor ownership, cleanup and deployment limitations.Validation
Final product head
b6a9ddd479437df3faea2de892af191d5192aea9: Windows Native AOT publish/run succeeded, with 22 focused tests passed and none skipped. These cover cross-process pre-existing write/delete handles, held image/ancestor replacement, ACL/reparse rejection, malformed PE directories, missing/replaced/conflicting dependencies and zero-start cases, SQLite loading, restricted inheritance, cancellation, normal release and owner termination. This does not independently exercise every possible Windows job nesting policy or failure of every native API. The first product run failed in publish with NETSDK1207 becausePublishAotreached netstandard2.0; the workflow now restricts the publish framework. The separate #560 experiment is not product validation.